//
//  C64Machine.m
//  C64
//
//  Created by Antonio "Willy" Malara on 19/04/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "C64Machine.h"

@implementation C64Machine

- (id)init;
{
	if ((self = [super init]) == nil)
		return nil;
		
	cpu    = [[MOS6510 alloc] init];
	memory = [[C64Memory alloc] init];
	
	cpu.memory = memory;
	[cpu reset];

	for (int i = 0; i < 80; i++)
		[cpu step];
	
	
	return self;
}

- (void)release;
{
	[cpu release];
	[memory release];
	[super dealloc];
}

@end
